package com.foreknow.demo16;

public class BImpl extends D implements A,B {
  @Override
  public void eat() {
    System.out.println("eat");
  }

  @Override
  public void sleep() {
    System.out.println("sleep");
  }

  @Override
  public void study() {
    System.out.println("study");
  }

  @Override
  public void walk() {
    System.out.println("walk");
  }

  @Override
  public void fly() {
    System.out.println("fly");
  }

  public static void main(String[] args) {
    BImpl b = new BImpl();
    b.eat();
    b.sleep();
    b.study();
    b.walk();
    b.fly();

  }


}
